package com.cnt.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cnt.entity.Evaluate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EvaluateDao extends BaseMapper<Evaluate> {

    @Select("select * from evaluate where request_id = #{id} ORDER BY evaluate_id DESC")
    public List<Evaluate> getByRequestId(int id);
}
